<table cellpadding="3" cellspacing="1" class="table table-bordered table-striped" id="list-table">
    <thead>
    <tr>
        <th style="text-align: center">卡片名称</th>
        <th style="text-align: center">有效期(天)</th>
        <th style="text-align: center">图文咨询次数</th>
        <th style="text-align: center">视频咨询时间(分钟)</th>
        <th style="text-align: center">免费送药次数</th>
        <th style="text-align: center">免费挂号次数</th>
        <th style="text-align: center">状态</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
<#if (userCardTypeList?size>0)>
    <#list  userCardTypeList as userCardType>
        <tbody>
            <tr>
                <!--卡片名称-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.cardName)??>
                        ${userCardType.cardName}
                    <#else >
                        未知
                    </#if>
                </td>

                <!--卡片有效期-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.validDuration)??>
                        ${userCardType.validDuration}
                    <#else >
                        0
                    </#if>
                </td>

                <!--图文咨询次数-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.cardtime01)??>
                    ${userCardType.cardtime01}
                    <#else >
                        0
                    </#if>
                </td>

                <!--视频咨询时间-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.cardtime03)??>
                    ${userCardType.cardtime03}
                    <#else >
                        0
                    </#if>
                </td>

                <!--免费送药次数-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.cardtime04)??>
                    ${userCardType.cardtime04}
                    <#else >
                        0
                    </#if>
                </td>

                <!--免费挂号次数-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.cardtime05)??>
                    ${userCardType.cardtime05}
                    <#else >
                        0
                    </#if>
                </td>

                <!--状态-->
                <td align="center" valign="top" nowrap="nowrap">
                    <#if (userCardType.isUsedFlag)??>
                        <#if (userCardType.isUsedFlag)==1>
                            启用
                        <#else>
                            未启用
                        </#if>
                    <#else >
                        未知
                    </#if>
                </td>

                <td align="center" valign="top" nowrap="nowrap">
                    <a href="${basePath}/cardtype/requestEditUserCardType.action?cardtypeID=${(userCardType.cardtypeid)}">编辑</a>
                </td>

            </tr>
        </tbody>
    </#list>
</#if>
</table>
<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryStuff.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>

                </span>
            </div>
        </td>

    </tr>
</table>